
Page({
    data: {
        userheaderImageList:[
            {headerImage:'../../image/installheaderimg.jpg',userName:'李老板',cnt:8},
            {headerImage:'../../image/installheaderimg.jpg',userName:'张老板',cnt:5},
            {headerImage:'../../image/installheaderimg.jpg',userName:'程老板',cnt:8},
            {headerImage:'../../image/installheaderimg.jpg',userName:'张老板',cnt:5},
        ],
        productList:[
            {imageUrl:'../../image/lvyou@2x.png',title:'中联6012原厂标准节80节标',time:'2019-07-11',
            address:'湖北武汉',headerImage:'../../image/installheaderimg.jpg',boss:'李老板',cnt:8,money:16.32},
            {imageUrl:'../../image/lvyou@2x.png',title:'中联6012原厂标准节80节标',time:'2019-07-11',
            address:'湖北武汉',headerImage:'../../image/installheaderimg.jpg',boss:'李老板',cnt:8,money:16.32},
            {imageUrl:'../../image/lvyou@2x.png',title:'中联6012原厂标准节80节标',time:'2019-07-11',
            address:'湖北武汉',headerImage:'../../image/installheaderimg.jpg',boss:'李老板',cnt:8,money:16.32}
        ],

        
    },
    onLoad:function(){
       
    },
    onShow:function(){
        // wx.getStorage({
        //     key: 'openId',
        //     success: function(res) {
        //         console.log("fff",res)
        //        if(!res){
        //         wx.reLaunch({
        //             url: '../login/login'
        //           })
        //        }
        //     },
        //     fail:function(){
        //         wx.reLaunch({
        //             url: '../login/login'
        //           })
        //     }
        //   })
    },
    moreEredarClick () { // 更多达人
        wx.navigateTo({
            url: '/pages/eredar/eredar'
        })
    },
    eredarClick () { // 达人详情
        wx.navigateTo({
            url: '/pages/eredarDetail/eredarDetail'
        })
    },
});